# -*- coding: UTF-8 -*-
import argparse
import logging

from ..constants import *
from .base_arg_parser import BaseArgParser

logger = logging.getLogger(__name__)

class MainArgParser(BaseArgParser):

    def __init__(self, prog, desc):
        super(MainArgParser, self).__init__(prog, desc)

        actChoices = [
            ACTION_VIEW
        ]      

        self.parser.add_argument('action'
                , choices = actChoices
                , type = str
                , help = 'Action list')

        self.parser.add_argument('-v'
                , '--verbosity'
                , action='count'
                , default=0
                , help = '日志级别')

